import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router'
// @ts-ignore
import LoginView from '@/views/home/Index.vue';
import NotFound from '@/views/error/404.vue';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Login',
    meta: {
      title: '登录',
      local: 'login.login'
    },
    component: LoginView
  },
  {
    path: '/login',
    name: 'Login',
    meta: {
      title: '登录',
      local: 'login.login'
    },
    component: LoginView
  },
  {
    path: '/404',
    name: 'NotFound',
    meta: {
      title: '404',
      local: 'login.login'
    },
    component: NotFound
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
